package assignmentstrategy

import (
	"codejy/analysis/codeanalysis"
	"codejy/globalfunc"
	"codejy/structdef"
)

type ExpressionStrategy struct {
}

func init() {
	RegisterStrategy(&ExpressionStrategy{})
}
func (n ExpressionStrategy) getId() int {
	return codeanalysis.EXPRESSION
}

func (n ExpressionStrategy) Execute(threadStore *structdef.ThreadStore, code string) string {
	//判断表达式处理
	value := globalfunc.ExecuteFunc("CalculateExpression", threadStore, code).(string)
	return value
}
